package com.youbug.system.service.impl;

import com.youbug.system.entity.RoleMenu;
import com.youbug.system.mapper.RoleMenuMapper;
import com.youbug.system.service.IRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;

/**
 * <p>
 * 角色菜单关系表 服务实现类
 * </p>
 *
 * @author sunwx
 * @since 2022-12-05
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements IRoleMenuService {

    @Transactional(transactionManager = "transactionManagerSystem", rollbackFor = Exception.class)
    public boolean saveBatch(Collection<RoleMenu> entityList) {
        return saveBatch(entityList, DEFAULT_BATCH_SIZE);
    }
}
